﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RedirectStep.aspx.cs" Inherits="H2.NET.Web.Workflow.Workflow.RedirectStep" %>

<div class="pageContent">
	<form id="Form1" runat="server" method="post" action="Workflow/RedirectStep.aspx?action=save" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone, '确定要提交吗？');">
		<div class="pageFormContent" layoutH="50">
		    <asp:hiddenfield runat="server" ID="hidProcess"></asp:hiddenfield>
            <asp:hiddenfield runat="server" ID="hidIncident"></asp:hiddenfield>
			 <table class="formTable">
            <tr>
                <th width="25%">当前可关闭的步骤：</th>
                <td width="75%" style="height: 180px;" valign="top">
                  <% foreach (var step in CurrentSteps)
                     {
                         Response.Write("<input type='checkbox' name='abortSteps' value='" + step.strStepName + "^" + step.strUser + "' />" + step.strStepName + "(" + step.strUserFullName + ")<br/>");
                     } %>
                </td>
            </tr>
            <tr>
                 <th>关闭操作：</th>
                <td><input name="closeAction" type="radio" value="abort" checked />Abort&nbsp;<input name="closeAction" type="radio" value="send"/>Send&nbsp;<input name="closeAction" type="radio" value="close"/>Close</td>    
            </tr>
            <tr>
                <th>目标激活步骤：</th>
                <td>
                   <select name="RedirectStep">
                       <option value="">--请选择步骤--</option>
                        <asp:repeater id="rptAllSteps" runat="server">
                            <ItemTemplate>
                                 <option value="<%# Container.DataItem %>"><%# Container.DataItem %></option>
                            </ItemTemplate>
                        </asp:repeater>
                   </select>
                </td>
            </tr>
        </table>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">确认提交</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">关闭窗口</button></div></div></li>
			</ul>
		</div>
	</form>
</div>
